<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2019/7/18
 * Time: 12:47
 */
namespace app\admin\validate;

use think\Validate;

class Smstasklog extends Validate{
    protected $rule = [
        'client_id'     => 'require',
        'task_id'       => 'require',
        'order_id'      => 'require',
        'origin_id'     => 'require',
        'mobile'        => 'require',
        'signature'     => 'require',
        'content'       => 'require',
        'sms_type_id'   => 'number',
        'sms_size'      => 'number',
        'status'        => 'number',
    ];
    protected $message  =   [
        'client_id.require'     => '客户ID不能为空',
        'task_id.require'       => '任务号不能为空',
        'order_id.require'      => '订单号不能为空',
        'origin_id.require'     => '下发途径不能为空',
        'mobile.require'        => '手机号不能为空',
        'signature.require'     => '签名不能为空',
        'content.require'       => '内容不能为空',
        'sms_type_id.number'    => '短信类型必须是数字',
        'sms_size.number'       => '短信大小必须是数字',
        'status.number'         => '状态必须是数字',
    ];
}